<%@ page language="Java" import="java.util.*,descriptor.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<%
	String userName = (String)request.getAttribute("userName");
	StudentListDescriptor listStudent = (StudentListDescriptor)request.getAttribute("listStudents");

%>
<html>
	<jsp:include page="markerHeader.jsp" >
		<jsp:param name="pageTitle" value="Work Placement Management System - Marker" />
	</jsp:include>
	<body OnLoad="showmenu(document.getElementById('smenu2'));">
		<jsp:include page="markerPageHeader.jsp"></jsp:include>
		<div id="container">
			<jsp:include page="markerMenu.jsp" ></jsp:include>
			<div id="content">
			<h3 class="posttitle">View your student</h3>
				<div class="entry">
				
				
<table cellpadding="0" cellspacing="10" border="0">


<%
for(StudentDescriptor student : listStudent.getStudentList()){
%>
<tr>
<td><%=student.getFirstName()%> <%= student.getSurName()%></td> 
<%
 if(student.getCompanySupFeedback() != -1){
%>
<td><a href="markerPage_handler?page=markerViewFeedback&amp;userId=<%=student.getId()%>">View Company Supervisor FeedBack </a> </td>
<% 
 }else{
 %>
 <td> No Company Feedback available </td>
<% 
 }
%>
<%
 if(student.getAcademicSupFeedback() != -1){
%>
<td><a href="markerPage_handler?page=markerViewReport&amp;userId=<%=student.getId()%>">View Academic Supervisor Report </a><td>
<% 
 }else{
 %>
 <td> No Academic Feedback available </td>
<% 
 }
%>

</tr>
<%
}
%>
</table>
			
			
				</div>
	    	</div>
			<jsp:include page="markerPageFooter.jsp"></jsp:include>
		</div>
	</body>
</html>